package cn.ubest.mvvmcore.interfaces

import cn.ubest.mvvmcore.base.BaseViewModel
import java.lang.Exception

/**
 * Created by maoqi on 2020/12/18.
 */
abstract class RequestHandler2Impl<T, R>(val vm: BaseViewModel<*>) : RequestHandler2<T, R> {

    override fun onError(isInit: Boolean, e: Exception) {
        super.onError(isInit, e)
        vm.handleError(isInit, e)
    }
}